<?php

use Melon\Provider\ConsoleProvider;
use Melon\Provider\RouteProvider;
use Pimple\Container;

require_once __DIR__ . "/../vendor/autoload.php";

$container = new Container();

// 设置基础路径
$container['base_path'] = realpath(__DIR__ . "/../");

// 加载路由
$container->register(new ConsoleProvider());
$container->register(new RouteProvider);

return $container;